@import '../../../mixins.scss';

.hero-banner {
  width: 100%;
  height: 450px;
  background-color: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  @include md {
    height: 700px;
  }

  .backdrop-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    overflow: hidden;

    .lazy-load-image-background {
      width: 100%;
      height: 100%;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
  }

  .opacity-layer {
    width: 100%;
    height: 250px;
    background: linear-gradient(180deg, rgba(4, 21, 45, 0) 0%, #04152d 79.17%);
    position: absolute;
    left: 0;
    bottom: 0;
  }

  .hero-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    .title {
      font-size: 30px;
      font-weight: 700;
      margin-bottom: 10px;

      @include md {
        font-size: 40px;
      }
    }

    .sub-title {
      font-size: 20px;
      font-weight: 500;
      margin-bottom: 40px;

      @include md {
        font-size: 24px;
      }
    }

    .search-input {
      display: flex;
      align-items: center;
      width: 100%;

      input {
        width: calc(100% - 100px);
        height: 50px;
        background-color: #fff;
        outline: none;
        border: none;
        border-radius: 30px 0 0 30px;
        padding: 0 15px;
        font-size: 14px;

        @include md {
          width: calc(100% - 150px);
          height: 60px;
          font-size: 20px;
          padding: 0 30px;
        }
      }

      button {
        width: 100px;
        height: 50px;
        border-radius: 0 30px 30px 0;
        background: var(--gradient);
        color: #fff;
        outline: none;
        border: none;
        font-size: 16px;
        cursor: pointer;

        @include md {
          width: 150px;
          height: 60px;
          font-size: 18px;
        }
      }
    }
  }
}
